home *** CD-ROM | disk | FTP | other *** search
/ Champak 109 / Vol 109.iso / games / speed_bi.swf / scripts / DefineSprite_25 / frame_9 / DoAction.as
Encoding:
Text File  |  2008-11-12  |  436 b   |  22 lines

  1. healthscore = Math.floor(_root.health) * 100;
  2. if(_root.gates > 0)
  3. {
  4.    targetscore = 0;
  5.    dietext = _root.gates.toString() + " Gate(s) left";
  6. }
  7. else
  8. {
  9.    targetscore = 2500;
  10.    dietext = "";
  11. }
  12. totalscore = basescore + _root.bonus + healthscore + targetscore;
  13. stopAllSounds();
  14. points = totalscore;
  15. bike._rotation = 0;
  16. bike._x = 0;
  17. bike._y = bike.y;
  18. bike.xspeed = 0;
  19. bike.x = 0;
  20. land.road.x = 0;
  21. land._rotation = 0;
  22.